package com.chenfan.finance.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.chenfan.finance.model.TocTradeRefundOrderDetail;
import com.chenfan.finance.model.vo.TimeRange;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface TocTradeRefundOrderDetailMapper extends BaseMapper<TocTradeRefundOrderDetail> {

    int insertList(@Param("list") List<TocTradeRefundOrderDetail> list,@Param("taskYearMonth") LocalDateTime taskYearMonth);

    int insertListSimplify(@Param("list") List<TocTradeRefundOrderDetail> list,@Param("taskYearMonth") LocalDateTime taskYearMonth);
    int insertList(@Param("list") List<TocTradeRefundOrderDetail> list, @Param("taskYearMonth") String taskYearMonth);

    List<TocTradeRefundOrderDetail> getDetailListByRefundCode(@Param("refundNo")String refundNo, @Param("timeRange")TimeRange timeRange);


    int copyDataToSimplify(@Param("taskYearMonth") LocalDateTime taskYearMonth);
}